package arrayQueue;

public class Test {
    public static void main(String[] args) {
//        v
//        System.out.println(queue.offer(1));
//        System.out.println(queue.offer(2));
//        System.out.println(queue.offer(3));
//        System.out.println(queue.offer(4));
//        System.out.println(queue.peek());
//
        ArrayQueue queue = new ArrayQueue();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
        queue.offer(5);
        queue.offer(6);
        queue.offer(7);
        queue.offer(8);
        queue.offer(9);
        queue.offer(10);
        while(!queue.isEmpty()) {
            System.out.println(queue.poll());
        }
    }
}
